<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>HowMuch Services API</title>
</head>
<body>
	<b>--- Metodos entidad Market:</b>
	<br/>
	<br/>
	<br/>
	<b>------ Show</b>
	<br/>
	<p>Parametros: Integer marketId (req)</p>
	<b>Ejemplo HttpRequest:</b>
	<br/>
	<br/> 
	<p>GET http://ip:port/howmuch-services/rest/market/show.json?marketId=2 HTTP/1.1</p>
	<p>Cookie: JSESSIONID=14F273C48CBD0EDA86E635299576E747; Path=/</p>
	<br/> 	
	<b>Ejemplo HttpResponse:</b>
	<br/>	
	<p>HTTP/1.1 200 OK</p>
	<p>Content-Type: application/json</p>
	<p>{"id":2,"marketcategory":{"id":3,"name":"Rotiseria","description":null},"address":{"id":3,"geopoint":{"id":4,"latitude":-34.627682,"longitude":-58.784755},"location":{"id":1,"province":{"id":1,"name":"Buenos Aires"},"name":"Moreno"},"name":"Marcos del Bueno 500","description":"Zona Comercial","zipcode":"B1743HHJ"},"name":"La Farola de Charly","description":"La mejor rotiseria de Moreno (modificado)","phone":"4681236","email":"lafaroladecharly@facebook.com.ar","score":3,"businesshour":"L - V","twentyfourhourservice":true,"deleted":false,"createuser":1,"updateuser":null,"createdate":1349974998000,"updatedate":null}</p>
	<br/>
	<br/>
	<br/>
	<b>------ List</b>
	<br/>
	<p>Parametros: Integer pageNumber (req), Integer size (req)</p>
	<b>Ejemplo HttpRequest:</b>
	<br/>
	<br/> 
	<p>GET http://ip:port/howmuch-services/rest/market/list.json?pageNumber=1&size=10 HTTP/1.1</p>
	<p>Cookie: JSESSIONID=14F273C48CBD0EDA86E635299576E747; Path=/</p>
	<br/> 	
	<b>Ejemplo HttpResponse:</b>
	<br/>	
	<p>HTTP/1.1 200 OK</p>
	<p>Content-Type: application/json</p>
	<p>[{"id":2,"marketcategory":{"id":3,"name":"Rotiseria","description":null},"address":{"id":3,"geopoint":{"id":4,"latitude":-34.627682,"longitude":-58.784755},"location":{"id":1,"province":{"id":1,"name":"Buenos Aires"},"name":"Moreno"},"name":"Marcos del Bueno 500","description":"Zona Comercial","zipcode":"B1743HHJ"},"name":"La Farola de Charly","description":"La mejor rotiseria de Moreno (modificado)","phone":"4681236","email":"lafaroladecharly@facebook.com.ar","score":3,"businesshour":"L - V","twentyfourhourservice":true,"deleted":false,"createuser":1,"updateuser":null,"createdate":1349974998000,"updatedate":null},{"id":1,"marketcategory":{"id":2,"name":"Kiosko","description":null},"address":{"id":1,"geopoint":{"id":2,"latitude":-34.629112,"longitude":-58.787123},"location":{"id":1,"province":{"id":1,"name":"Buenos Aires"},"name":"Moreno"},"name":"Martin Fierro 5200","description":null,"zipcode":"B1743AMH"},"name":"Kiosko Valentina","description":null,"phone":null,"email":null,"score":0,"businesshour":null,"twentyfourhourservice":null,"deleted":false,"createuser":1,"updateuser":null,"createdate":1349466333000,"updatedate":null}]</p>
	<br/>
	<br/>
	<br/>
	<b>------ Create</b>
	<br/>
	<p>Parametros: Integer marketcategoryId (req), String name (req), String description, String phone, String email, String businesshour, Boolean twentyfourhourservice, Integer addressLocationId (req), String addressName (req), String addressDescription, String addressZipcode (req), Double geopointLatitude (req), Double geopointLongitude (req)</p>
	<b>Ejemplo HttpRequest:</b>
	<br/>
	<br/> 
	<p>PUT http://ip:port/howmuch-services/rest/market/create.json?marketcategoryId=3&name=La%20Farola%20de%20Charly%202&description=La%20mejor%20rotiseria%20de%20Moreno&phone=4681236&email=lafaroladecharly%40facebook.com.ar&businesshour=L%20-%20V&twentyfourhourservice=true&addressLocationId=1&addressName=Marcos%20del%20Bueno%20500&addressDescription=Zona%20Comercial&addressZipcode=B1743HHJ&geopointLatitude=-34.627682&geopointLongitude=-58.784755 HTTP/1.1</p>
	<p>Cookie: JSESSIONID=14F273C48CBD0EDA86E635299576E747; Path=/</p>
	<br/> 	
	<b>Ejemplo HttpResponse:</b>
	<br/>	
	<p>HTTP/1.1 200 OK</p>
	<p>Content-Type: application/json</p>
	<p>{"status":"done"}</p>
	<br/>
	<br/>
	<br/>
	<b>------ Update</b>
	<br/>
	<p>Parametros: Integer marketId (req), Integer marketcategoryId (req), String name (req), String description, String phone, String email, String businesshour, Boolean twentyfourhourservice, Integer addressLocationId (req), String addressName (req), String addressDescription, String addressZipcode (req), Double geopointLatitude (req), Double geopointLongitude (req)</p>
	<b>Ejemplo HttpRequest:</b>
	<br/>
	<br/> 
	<p>PUT http://ip:port/howmuch-services/rest/market/update.json?marketId=2&marketcategoryId=3&name=La%20Farola%20de%20Charly&description=La%20mejor%20rotiseria%20de%20Moreno%20%28modificado%29&phone=4681236&email=lafaroladecharly%40facebook.com.ar&businesshour=L%20-%20V&twentyfourhourservice=true&addressLocationId=1&addressName=Marcos%20del%20Bueno%20500&addressDescription=Zona%20Comercial&addressZipcode=B1743HHJ&geopointLatitude=-34.627682&geopointLongitude=-58.784755 HTTP/1.1</p>
	<p>Cookie: JSESSIONID=14F273C48CBD0EDA86E635299576E747; Path=/</p>
	<br/> 	
	<b>Ejemplo HttpResponse:</b>
	<br/>	
	<p>HTTP/1.1 200 OK</p>
	<p>Content-Type: application/json</p>
	<p>{"status":"done"}</p>
	<br/>
	<br/>
	<br/>
	<b>------ Score</b>
	<br/>
	<p>Parametros: Integer marketId (req)</p>
	<b>Ejemplo HttpRequest:</b>
	<br/>
	<br/> 
	<p>PUT http://ip:port/howmuch-services/rest/market/score.json?marketId=2 HTTP/1.1</p>
	<p>Cookie: JSESSIONID=14F273C48CBD0EDA86E635299576E747; Path=/</p>
	<br/> 	
	<b>Ejemplo HttpResponse:</b>
	<br/>	
	<p>HTTP/1.1 200 OK</p>
	<p>Content-Type: application/json</p>
	<p>{"status":"done"}</p>
	<br/>
	<br/>
	<br/>
	<b>------ Unscore</b>
	<br/>
	<p>Parametros: Integer marketId (req)</p>
	<b>Ejemplo HttpRequest:</b>
	<br/>
	<br/> 
	<p>PUT http://ip:port/howmuch-services/rest/market/unscore.json?marketId=2 HTTP/1.1</p>
	<p>Cookie: JSESSIONID=14F273C48CBD0EDA86E635299576E747; Path=/</p>
	<br/> 	
	<b>Ejemplo HttpResponse:</b>
	<br/>	
	<p>HTTP/1.1 200 OK</p>
	<p>Content-Type: application/json</p>
	<p>{"status":"done"}</p>
	<br/>
	<br/>
	<br/>
	<b>------ ListByProductsAndLocation</b>
	<br/>
	<p>Parametros: Integer[] productId (req), Double locLatitude (req), Double locLongitude (req), Integer ratio (req), Integer pageNumber (req), Integer size (req)</p>
	<b>Ejemplo HttpRequest:</b>
	<br/>
	<br/> 
	<p>GET http://ip:port/howmuch-services/rest/market/listByProductsAndLocation.json?productId=2%2C1&locLatitude=-34.628405&locLongitude=-58.79167&ratio=1&pageNumber=1&size=10 HTTP/1.1</p>
	<p>Cookie: JSESSIONID=14F273C48CBD0EDA86E635299576E747; Path=/</p>
	<br/> 	
	<b>Ejemplo HttpResponse:</b>
	<br/>	
	<p>HTTP/1.1 200 OK</p>
	<p>Content-Type: application/json</p>
	<p>[{"id":2,"marketcategory":{"id":2,"name":"Rotiseria","description":"Rotiseria"},"address":{"id":2,"geopoint":{"id":2,"latitude":-34.627682,"longitude":-58.784755},"location":{"id":1,"province":{"id":1,"name":"Buenos Aires"},"name":"Moreno"},"name":"Marcos del Bueno 500","description":"Zona Comercial","zipcode":"B1743HHJ"},"name":"La Farola de Charly","description":"La mejor rotiseria de Moreno","phone":"4681236","email":"lafaroladecharly@facebook.com.ar","score":0,"businesshour":"L - V","twentyfourhourservice":true,"deleted":false,"createuser":1,"updateuser":null,"createdate":1351789355000,"updatedate":null},{"id":4,"marketcategory":{"id":3,"name":"Supermercado","description":"Supermercado"},"address":{"id":4,"geopoint":{"id":4,"latitude":-34.627483,"longitude":-58.785289},"location":{"id":1,"province":{"id":1,"name":"Buenos Aires"},"name":"Moreno"},"name":"Marcos del Bueno 530","description":null,"zipcode":"B1743HHL"},"name":"Supermercado San Andres","description":"Los due�os son chinos!","phone":null,"email":null,"score":0,"businesshour":null,"twentyfourhourservice":false,"deleted":false,"createuser":1,"updateuser":null,"createdate":1351789978000,"updatedate":null}]</p>
	<br/>
	<br/>
	<br/>				
	<a href="../index.jsp">Volver</a>	
</body>
</html>